pkgname=vdr-fepg
pkgver=0.2.1
pkgrel=1
arch=('i686')
pkgdesc="A VDR plugin for viewing and navigating through EPG data"
url="http://www.fepg.tk/"
license=('GPL')
depends=('vdr' 'gcc')
source=(http://fepg2.f2g.net/$pkgname-$pkgver.tgz)
md5sums=('a7b86a60df42d47e8e465f9fb8721f5b')

build() {
  cd $startdir/src/fepg-$pkgver

  sed -i -e 's:config.mute = 1;:config.mute = 0;:' fepg.c
  sed -i \
	 -e 's:@cp $@ :install -D -m 755 $@ $(DESTDIR):' \
	 Makefile
  make VDRDIR=/usr/include/vdr LIBDIR=/usr/lib/vdr DESTDIR=$startdir/pkg all || return 1
}
